Skip to content

move transforms out of compose file#1623

Merged
rijobro merged 9 commits into
Project-MONAI:masterfrom
rijobro:move_transform_out_from_compose
Feb 24, 2021
Merged

move transforms out of compose file#1623
rijobro merged 9 commits into
Project-MONAI:masterfrom
rijobro:move_transform_out_from_compose

Conversation

@rijobro

@rijobro rijobro commented Feb 23, 2021

Copy link
Copy Markdown
Contributor

refactor the Transform, MapTransform and Randomizable to live in transform.py instead of compose.py.

Needed for inverse transform PR.
#1515

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@wyli

wyli commented Feb 23, 2021

Copy link
Copy Markdown
Contributor

this is potentially a breaking change in many cases, could you confirm @Nic-Ma?

@wyli wyli requested a review from Nic-Ma February 23, 2021 15:45
@rijobro

rijobro commented Feb 23, 2021

Copy link
Copy Markdown
Contributor Author

If it would create many breaking changes, we could always alias the Transform, Randomizable, and MapTransform back into compose.py.

I made these changes because the amount of code in these classes grew so it made sense to put them into their correct file (Transform isn't of type Compose).

I can do without this PR if it's deemed more effort than necessary, but I think it makes things cleaner.

@rijobro

rijobro commented Feb 24, 2021

Copy link
Copy Markdown
Contributor Author

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

@wyli wyli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this is a non-breaking module rearrangement

@rijobro rijobro enabled auto-merge (squash) February 24, 2021 17:57
@rijobro rijobro merged commit 3a1c459 into Project-MONAI:master Feb 24, 2021
@rijobro rijobro deleted the move_transform_out_from_compose branch February 25, 2021 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants